﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NCLCustomerManagement.UI.Helper.Utils
{
    public class ControllerUtils
    {
        private ControllerUtils(){}
        public static string GetCategoryAliasFrom(params string[] alias)
        {
            if (alias.Length == 0)
                throw new ArgumentException("Alias do not contain any value");
            for (int i = alias.Length - 1; i > 0; i--)
            {
                if (alias[i] == null)
                    continue;
                return alias[i];
            }
            return alias[0];
        }
    }
}